package Persistance::HomeEnvironmentDao;

use strict;
use warnings;
use 5.010;

use Utils::DbUtils qw(query_for_array update);
use Pojo::Temperature;
use Pojo::AlertRecord;
use Utils::Constants;
use Exporter qw(import);

sub get_room_temperature_data {
	my @res = query_for_array(Utils::Constants::GET_TODAY_HOME_TEMPERATURE_SQL, "Pojo::Temperature");

	return @res;
}

sub get_room_brightness_alert_data {
	my @res = query_for_array(Utils::Constants::GET_BRIGHTNESS_SQL, "Pojo::AlertRecord");

	return @res;
}

sub get_room_firesafety_alert_data {
	my @res = query_for_array(Utils::Constants::GET_FIRESAFETY_SQL, "Pojo::AlertRecord");

	return @res;
}

1;
